package com.vastcom.fabric.server.service;

import com.vastcom.fabric.server.tools.UserContext;
import org.hyperledger.fabric.sdk.Channel;
import org.hyperledger.fabric.sdk.HFClient;
import org.hyperledger.fabric.sdk.Orderer;
import org.hyperledger.fabric.sdk.Peer;

public interface FabricService {

     UserContext getMyUserContext();





    HFClient getHfClient();
    HFClient getHfClientByOrg(String org);



    Channel createChannel();
    Channel getCannelByName(String name);
    boolean initChannel();

    Peer getPeer(String name,String grpcUrl,String tlsFilePath);
    Peer getPeerByName(String name);
    Orderer getOrderer(String name,String grpcurl,String tlsfilePath);
    Orderer getOrderer();






}
